package cn.cybozu.api;

public class KintoneAppAclEntity
{
	private boolean appEditable = false;
	private boolean recordViewable = false;
	private boolean recordAddable = false;
	private boolean recordEditable = false;
	private boolean recordDeletable = false;
	private boolean recordImportable = false;
	private boolean recordExportable = false;
	private boolean includeSubs = false;
	private Object entity = null;
	
	public void setUser(CybozuUser user)
	{
		entity = user;
	}
	public void setGroup(CybozuGroup group)
	{
		entity = group;
	}
	public void setOrganization(CybozuOrganization organization, boolean inCludeSubs)
	{
		entity = organization;
		this.includeSubs = inCludeSubs;
	}
	public Object getEntity()
	{
		return entity;
	}
	public boolean isAppEditable()
	{
		return appEditable;
	}
	public void setAppEditable(boolean appEditable)
	{
		this.appEditable = appEditable;
	}
	public boolean isRecordViewable()
	{
		return recordViewable;
	}
	public void setRecordViewable(boolean recordViewable)
	{
		this.recordViewable = recordViewable;
	}
	public boolean isRecordAddable()
	{
		return recordAddable;
	}
	public void setRecordAddable(boolean recordAddable)
	{
		this.recordAddable = recordAddable;
	}
	public boolean isRecordEditable()
	{
		return recordEditable;
	}
	public void setRecordEditable(boolean recordEditable)
	{
		this.recordEditable = recordEditable;
	}
	public boolean isRecordDeletable()
	{
		return recordDeletable;
	}
	public void setRecordDeletable(boolean recordDeletable)
	{
		this.recordDeletable = recordDeletable;
	}
	public boolean isRecordImportable()
	{
		return recordImportable;
	}
	public void setRecordImportable(boolean recordImportable)
	{
		this.recordImportable = recordImportable;
	}
	public boolean isRecordExportable()
	{
		return recordExportable;
	}
	public void setRecordExportable(boolean recordExportable)
	{
		this.recordExportable = recordExportable;
	}
	public boolean isIncludeSubs()
	{
		return includeSubs;
	}
}
